package com.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("c_used")
public class CUsed {
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String cargo;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userNum;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userType;
    private String summary;
    private Double price;
    private String picture;
    private Date time;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long state;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long cityNum;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long changeType;
}
